﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>@ViewData["Title"] - BPanel主机管理系统</title>
    <link rel="stylesheet" href="~/css/layui.css"/>
    <link rel="stylesheet" href="~/css/bpanel.min.css" asp-append-version="true"/>
    <link rel="stylesheet" href="~/css/admin.css" asp-append-version="true"/>
</head>
<body>
<div class="app">
    <div class="layout">
        <div class="layui-header">
            <!-- 头部区域 -->
            <div class="layui-header-left"></div>
            <div class="layui-header-right">
                <div class="avatar-text" id="layui-admin-user">
                    admin <i class="layui-edge layui-edge-bottom" style="border-top-color: black;"></i>
                </div>
            </div>
        </div>

        <!--侧边菜单-->
        <div class="layui-side layui-side-menu">
            <div class="layui-side-scroll">
                <div class="layui-logo bg-white">
                    <span>BPanel</span>
                </div>

                <div class="h-5 bg-f2f2f2"></div>
                <ul class="bp-nav">
                    <li class="@(ViewData["menu"] == "home" ? "active" : string.Empty)">
                        <a href="/" class="flex justify-start items-center color-white w-full">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>仪表板</cite>
                        </a>
                    </li>
                    <li class="@(ViewData["menu"] == "website" ? "active" : string.Empty)">
                        <a href="/website" class="flex justify-start items-center color-white w-full">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>站点管理</cite>
                        </a>
                    </li>
                    <li>
                        <a href="/database" class="flex justify-start items-center color-white w-full">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>数据库管理</cite>
                        </a>
                    </li>
                    <li>
                        <a href="/ftp" class="flex justify-start items-center color-white w-full">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>FTP</cite>
                        </a>
                    </li>
                    <li>
                        <a href="file" class="flex justify-start items-center color-white w-full">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>文件</cite>
                        </a>
                    </li>
                    <li>
                        <a href="/plan" class="flex justify-start items-center color-white w-full">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>计划任务</cite>
                        </a>
                    </li>
                    <li>
                        <a href="/setting" class="flex justify-start items-center color-white w-full">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>设置</cite>
                        </a>
                    </li>
                </ul>
            </div>
        </div>

        <!--主体内容-->
        <div class="layui-body">
            <div class="p-5">
                @RenderBody()
            </div>
        </div>
    </div>
</div>
<script src="/js/jquery.min.js"></script>
<script src="/js/layui.js"></script>
<script>
    layui.use(function (){
        var dropdown = layui.dropdown;
        // 绑定文字
        dropdown.render({
            elem: '#layui-admin-user',
            data: [{
                title: '退出登录',
                id: 100
            }],
            click: function(obj){
                // 退出登录
            }
        });
    })
</script>
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>